﻿using OpenCvSharp;


namespace Xc.DataAccess.CodeReader.Models
{
    /// <summary>
    /// 霍夫线段
    /// </summary>
    public class CVLineSegmentPolar
    {
        /// <summary>
        /// 累加器的距离
        /// </summary>
        public float Rho { get; set; }
        /// <summary>
        /// 角度
        /// </summary>
        public float Theta { get; set; }
        public static implicit operator CVLineSegmentPolar(LineSegmentPolar lineSegmentPolar)
        {
            return new CVLineSegmentPolar { Rho = lineSegmentPolar.Rho, Theta = lineSegmentPolar.Theta };
        }
    }
}
